<script setup>
import { reactive } from 'vue';
import String2List from '../../../String2List.vue';
const props = defineProps({
  probeConfig: {
    type: Object
  },
  containerIndex: {
    type: Number
  },
  probeType: {
    type: String
  },
  containerType: {
    type: String
  }
})
const rules = reactive({
  command: [
    { required: true, message: '执行命令必填', trigger: 'blur'}
  ]
})
</script>

<template>
  <el-form-item label="检查命令" :rules="rules.command" :prop="('spec.template.spec.containers.'+props.containerIndex+'.'+props.probeType+'.exec.command')" required>
    <String2List placeholder="请输入健康检查执行命令 回车换行" v-model:data="props.probeConfig.exec.command"></String2List>
  </el-form-item>
</template>

<style scoped>
</style>
